package cn.com.chengq.drools.service.impl;

import cn.com.chengq.dao.UserDAO;
import cn.com.chengq.model.SysUser;
import cn.com.chengq.drools.service.UserService;

public class UserServiceImpl implements UserService {

    private UserDAO userDAO;

    public void setUserDAO(UserDAO userDAO) {
        this.userDAO = userDAO;
    }

    @Override
    public void addUser(SysUser user) {
        System.out.println("Add User:" + user);
        userDAO.insertUser(user);
    }
}
